var Selected = "";
function SwitchMessage(elm)
{	
	var elmref;
	if (Selected != "")
	{
		elmref = eval("document.getElementById('" + Selected + "_h1')");
		if (elmref) elmref.style.display = 'none';
		elmref = eval("document.getElementById('" + Selected + "_h0')");
		if (elmref) elmref.bgColor = '#FFFFFF';
	}
	if (Selected != elm.name) 
	{
		Selected = elm.name;
		elmref = eval("document.getElementById('" + Selected + "_h1')");
		if (elmref) 
		{
			if (elmref.style.display=='none'){
                elmref.style.display='';
            }
			else{
                elmref.style.display = 'none';
            }
		}
		elmref = eval("document.getElementById('" + Selected + "_h0')");
		if (elmref) 
			elmref.bgColor = '#EAEAEA';
	}
	else
		Selected="";
	//window.location = "#xx" + Selected + "xx";
	return false;
}
function SwitchThisMessage()
{
	return SwitchMessage(this);
}
